<extend name="../Public/model" />
<block name="title">编辑{$TITLE}</block>
<block name="body">
    <form class="form form-horizontal form-validate" id="form-ajax-Form" method="post">
        <input type="hidden" name="admin_id" value="{$detail.admin_id}" />
        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-3"><span class="c-red">*</span>用户名：</label>
            <div class="formControls col-xs-8 col-sm-8">
                <input type="text" class="input-text" value="{$detail.username}" name="username" disabled="disabled">
            </div>
        </div>
        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-3">昵称或公司名称：</label>
            <div class="formControls col-xs-8 col-sm-8">
                <input type="text" class="input-text" datatype="*5-32" nullmsg="昵称或公司名称不能为空" value="{$detail.nickname}" name="nickname">
            </div>
        </div>
        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-3">角色：</label>
            <div class="formControls col-xs-8 col-sm-8">
                <!--<span class="select-box" style="width:150px;">-->
                    <!--<select class="select" name="role_ids" size="1">-->
                        <!--<volist name="roles" id="info">-->
                            <!--<option value="{$info.role_id}" <eq name="info.role_id" value="$detail.role_id">selected="selected"</eq>>{$info.role_name}</option>-->
                        <!--</volist>-->
                    <!--</select>-->
			    <!--</span>-->
                <volist name="roles" id="info">
                    <div class="check-box">
                        <input type="checkbox" name="role_ids[]" value="{$info.role_id}" <in name="info.role_id" value="$detail.role_ids">checked=""</in>>
                        <label>{$info.role_name}</label>
                    </div>
                </volist>
            </div>
        </div>
        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-3">手机：</label>
            <div class="formControls col-xs-8 col-sm-8">
                <input type="text" class="input-text" value="{$detail.mobile}" name="mobile">
            </div>
        </div>
        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-3">邮箱：</label>
            <div class="formControls col-xs-8 col-sm-8">
                <input type="text" class="input-text" placeholder="@" value="{$detail.email}" name="email">
            </div>
        </div>
        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-3">备注：</label>
            <div class="formControls col-xs-8 col-sm-8">
                <textarea name="remark" cols="" rows="" class="textarea"  placeholder="说点什么...100个字符以内" dragonfly="true" onKeyUp="$.Huitextarealength(this,100)">{$detail.remark}</textarea>
                <p class="textarea-numberbar"><em class="textarea-length">0</em>/100</p>
            </div>
        </div>
        <div class="row cl">
            <div class="col-xs-8 col-sm-8 col-xs-offset-4 col-sm-offset-3">
                <input class="btn btn-primary radius" type="submit" value="&nbsp;&nbsp;提交&nbsp;&nbsp;">
            </div>
        </div>
    </form>
</block>